<template>
  <demoBlock title="可关闭" padding class="demo-tag">
    <vcu-tag :show="show" closeable size="medium" type="primary" @close="close">
      标签
    </vcu-tag>
  </demoBlock>
</template>
<script>
import { ref } from "vue";

export default {
  setup() {
    const show = ref(true);
    const close = () => {
      show.value = false;
    };

    return {
      show,
      close,
    };
  },
};
</script>
<style lang="less" scoped>
.demo-tag {
  .vcu-tag {
    margin-right: 10px;
  }
}
</style>
